/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package alunos;

import index.ErroInternoException;
import java.io.Serializable;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.Persistence;
import javax.persistence.PersistenceContext;


/**
 *
 * @author sabrina
 */
public class RepositorioAlunoJPA {
    @Stateless
public class RepositorioClientesJPA implements RepositorioAluno, Serializable {
    
    @PersistenceContext
    private EntityManager em;

    public RepositorioClientesJPA() {
        this.em = Persistence.createEntityManagerFactory("GestaoEscolarPU").createEntityManager();
    }

        @Override
        public void adicionarAluno(Aluno aluno) throws ErroInternoException, AlunoExistenteException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void removerAluno(long id_aluno) throws ErroInternoException, AlunoInexistenteException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public Aluno buscarAluno(long id_aluno) throws ErroInternoException, AlunoInexistenteException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public void atualizarAluno(Aluno aluno) throws ErroInternoException, AlunoInexistenteException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public Aluno loginAluno(String matricula, String senha) throws ErroInternoException, AlunoInexistenteException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

        @Override
        public List<Aluno> listaAluno(Aluno aluno) throws ErroInternoException {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }

   
}

    
}
